package cn.usian.service.impl;

import cn.usian.dao.OrderMapper;
import cn.usian.pojo.Order;
import cn.usian.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public Order findById(Long id) {
        return orderMapper.selectById(id);
    }

    @Override
    public Order queryOrderById(Long orderId) {
        return orderMapper.selectById(orderId);
    }
}
